package com.jhws.sys.cms.bo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 内容资源
 *
 * @author xiaokek
 * @since 2016年12月3日 上午10:45:30
 */
@Table(name = "cms_resource")
@Entity
public class Resource implements Serializable {

    @Id
    private String resource_id;// id
    private String parentResourceId;// 父资源id
    private String parentTypeCode; // 父分类code
    private String type_code;// 分类code
    private String title;// 标题
    private String description;// 描述
    private String icon_url;// 图标地址
    private String content_url;// 内容地址
    private String creator;// 创建人
    private Date create_time;// 创建时间
    private String isApproved;//是否通过审核
    private String approvedState;//审核状态
    private String comm_code; //小区编号
    private String commGroupId; //小区分组ID
    private String customContent;//自定义数据内容
    private String customType;//自定义资源类型

    public String getResource_id() {
        return resource_id;
    }

    public void setResource_id(String resource_id) {
        this.resource_id = resource_id;
    }

    public String getParentResourceId() {
        return parentResourceId;
    }

    public void setParentResourceId(String parentResourceId) {
        this.parentResourceId = parentResourceId;
    }

    public String getParentTypeCode() {
        return parentTypeCode;
    }

    public void setParentTypeCode(String parentTypeCode) {
        this.parentTypeCode = parentTypeCode;
    }

    public String getType_code() {
        return type_code;
    }

    public void setType_code(String type_code) {
        this.type_code = type_code;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getIcon_url() {
        return icon_url;
    }

    public void setIcon_url(String icon_url) {
        this.icon_url = icon_url;
    }

    public String getContent_url() {
        return content_url;
    }

    public void setContent_url(String content_url) {
        this.content_url = content_url;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getIsApproved() {
        return isApproved;
    }

    public void setIsApproved(String isApproved) {
        this.isApproved = isApproved;
    }

    public String getApprovedState() {
        return approvedState;
    }

    public void setApprovedState(String approvedState) {
        this.approvedState = approvedState;
    }

    public String getComm_code() {
        return comm_code;
    }

    public void setComm_code(String comm_code) {
        this.comm_code = comm_code;
    }

    public String getCommGroupId() {
        return commGroupId;
    }

    public void setCommGroupId(String commGroupId) {
        this.commGroupId = commGroupId;
    }

    public String getCustomContent() {
        return customContent;
    }

    public void setCustomContent(String customContent) {
        this.customContent = customContent;
    }

    public String getCustomType() {
        return customType;
    }

    public void setCustomType(String customType) {
        this.customType = customType;
    }

    @Override
    public String toString() {
        return "Resource{" +
                "resource_id='" + resource_id + '\'' +
                ", type_code='" + type_code + '\'' +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", icon_url='" + icon_url + '\'' +
                ", content_url='" + content_url + '\'' +
                ", creator='" + creator + '\'' +
                ", create_time=" + create_time +
                ", isApproved='" + isApproved + '\'' +
                ", approvedState='" + approvedState + '\'' +
                ", comm_code='" + comm_code + '\'' +
                ", customContent='" + customContent + '\'' +
                ", customType='" + customType + '\'' +
                '}';
    }
}
